square pattern using while loop